composetable: Add a prefix api
authorMatthias Clasen <mclasen@redhat.com>
Thu, 29 Jul 2021 12:23:40 +0000 (08:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 29 Jul 2021 12:23:40 +0000 (08:23 -0400)
commit914edb1472b322c7bfe081e34671398f715476d4
tree9b0cf201d1d6c7f807a74eed1e66d57d3b0bef8e
parentdbf5033f947e51683400d6c18ecb6043aa1943bd
composetable: Add a prefix api

Add a function that computes the longest prefix
of a buffer for which a compose table has matches.
gtk/gtkcomposetable.c
gtk/gtkcomposetable.h